<!DOCTYPE html>
<html>
<!-- Created by GNU Texinfo 7.1.1, https://www.gnu.org/software/texinfo/ -->
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<!-- This file documents the use of the GNU compilers.

Copyright © 1988-2023 Free Software Foundation, Inc.

Permission is granted to copy, distribute and/or modify this document
under the terms of the GNU Free Documentation License, Version 1.3 or
any later version published by the Free Software Foundation; with the
Invariant Sections being "Funding Free Software", the Front-Cover
Texts being (a) (see below), and with the Back-Cover Texts being (b)
(see below).  A copy of the license is included in the section entitled
"GNU Free Documentation License".

(a) The FSF's Front-Cover Text is:

A GNU Manual

(b) The FSF's Back-Cover Text is:

You have freedom to copy and modify this GNU Manual, like GNU
     software.  Copies published by the Free Software Foundation raise
     funds for GNU development. -->
<title>Argument Types (Using the GNU Compiler Collection (GCC))</title>

<meta name="description" content="Argument Types (Using the GNU Compiler Collection (GCC))">
<meta name="keywords" content="Argument Types (Using the GNU Compiler Collection (GCC))">
<meta name="resource-type" content="document">
<meta name="distribution" content="global">
<meta name="Generator" content="makeinfo">
<meta name="viewport" content="width=device-width,initial-scale=1">

<link href="index.html" rel="start" title="Top">
<link href="Indices.html" rel="index" title="Indices">
<link href="index.html#SEC_Contents" rel="contents" title="Table of Contents">
<link href="FR_002dV-Built_002din-Functions.html" rel="up" title="FR-V Built-in Functions">
<link href="Directly_002dmapped-Integer-Functions.html" rel="next" title="Directly-mapped Integer Functions">
<style type="text/css">
<!--
a.copiable-link {visibility: hidden; text-decoration: none; line-height: 0em}
kbd.key {font-style: normal}
span:hover a.copiable-link {visibility: visible}
-->
</style>


</head>

<body lang="en_US">
<div class="subsubsection-level-extent" id="Argument-Types">
<div class="nav-panel">
<p>
Next: <a href="Directly_002dmapped-Integer-Functions.html" accesskey="n" rel="next">Directly-Mapped Integer Functions</a>, Up: <a href="FR_002dV-Built_002din-Functions.html" accesskey="u" rel="up">FR-V Built-in Functions</a> &nbsp; [<a href="index.html#SEC_Contents" title="Table of contents" rel="contents">Contents</a>][<a href="Indices.html" title="Index" rel="index">Index</a>]</p>
</div>
<hr>
<h4 class="subsubsection" id="Argument-Types-1"><span>6.60.13.1 Argument Types<a class="copiable-link" href="#Argument-Types-1"> &para;</a></span></h4>

<p>The arguments to the built-in functions can be divided into three groups:
register numbers, compile-time constants and run-time values.  In order
to make this classification clear at a glance, the arguments and return
values are given the following pseudo types:
</p>
<table class="multitable">
<thead><tr><th width="20%">Pseudo type</th><th width="30%">Real C type</th><th width="15%">Constant?</th><th width="35%">Description</th></tr></thead>
<tbody><tr><td width="20%"><code class="code">uh</code></td><td width="30%"><code class="code">unsigned short</code></td><td width="15%">No</td><td width="35%">an unsigned halfword</td></tr>
<tr><td width="20%"><code class="code">uw1</code></td><td width="30%"><code class="code">unsigned int</code></td><td width="15%">No</td><td width="35%">an unsigned word</td></tr>
<tr><td width="20%"><code class="code">sw1</code></td><td width="30%"><code class="code">int</code></td><td width="15%">No</td><td width="35%">a signed word</td></tr>
<tr><td width="20%"><code class="code">uw2</code></td><td width="30%"><code class="code">unsigned long long</code></td><td width="15%">No</td><td width="35%">an unsigned doubleword</td></tr>
<tr><td width="20%"><code class="code">sw2</code></td><td width="30%"><code class="code">long long</code></td><td width="15%">No</td><td width="35%">a signed doubleword</td></tr>
<tr><td width="20%"><code class="code">const</code></td><td width="30%"><code class="code">int</code></td><td width="15%">Yes</td><td width="35%">an integer constant</td></tr>
<tr><td width="20%"><code class="code">acc</code></td><td width="30%"><code class="code">int</code></td><td width="15%">Yes</td><td width="35%">an ACC register number</td></tr>
<tr><td width="20%"><code class="code">iacc</code></td><td width="30%"><code class="code">int</code></td><td width="15%">Yes</td><td width="35%">an IACC register number</td></tr>
</tbody>
</table>

<p>These pseudo types are not defined by GCC, they are simply a notational
convenience used in this manual.
</p>
<p>Arguments of type <code class="code">uh</code>, <code class="code">uw1</code>, <code class="code">sw1</code>, <code class="code">uw2</code>
and <code class="code">sw2</code> are evaluated at run time.  They correspond to
register operands in the underlying FR-V instructions.
</p>
<p><code class="code">const</code> arguments represent immediate operands in the underlying
FR-V instructions.  They must be compile-time constants.
</p>
<p><code class="code">acc</code> arguments are evaluated at compile time and specify the number
of an accumulator register.  For example, an <code class="code">acc</code> argument of 2
selects the ACC2 register.
</p>
<p><code class="code">iacc</code> arguments are similar to <code class="code">acc</code> arguments but specify the
number of an IACC register.  See see <a class="pxref" href="Other-Built_002din-Functions.html">Other Built-in Functions</a>
for more details.
</p>
</div>



</body>
</html>
